cmake_minimum_required(VERSION 3.19)
project(leetcode_solutions)

set(CMAKE_CXX_STANDARD 14)
include_directories(
        ${PROJECT_SOURCE_DIR}/src/)

add_executable(leetcode_solutions main.cpp
        src/206_reverse_linked_list/reverse_linked_list.cpp
        src/92_reverse_linked_list_II/reverse_linked_list_II.cpp
        src/92_reverse_linked_list_II/reverse_linked_list_II.h
        src/160_get_intersection_node/getIntersectionNode.cpp
        src/160_get_intersection_node/getIntersectionNode.h
        src/142_detectCycle/detectCycle.cpp
        src/142_detectCycle/detectCycle.h
        src/86_partition_list/partition_list.cpp
        src/86_partition_list/partition_list.h
        src/138_copyRandomList/copyRandomList.cpp
        src/138_copyRandomList/copyRandomList.h
        src/21_mergeTwoLists/mergeTwoLists.cpp
        src/21_mergeTwoLists/mergeTwoLists.h
        src/23_mergeKLists/mergeKLists.cpp
        src/23_mergeKLists/mergeKLists.h
        src/224_basicCalculator/basic_calculator.cpp
        src/224_basicCalculator/basic_calculator.h
        src/225_make_stack_with_queue/stack_use_queue.cpp
        src/225_make_stack_with_queue/stack_use_queue.h
        src/215_Kth_largest_num/kth_largest_num.cpp
        src/215_Kth_largest_num/kth_largest_num.h
        src/295_find_median/find_median.cpp
        src/295_find_median/find_median.h
        src/155_min_stack/min_stack.cpp
        src/155_min_stack/min_stack.h
        src/232_make_queue_using_stacks/queue_use_stack.cpp
        src/232_make_queue_using_stacks/queue_use_stack.h
        src/455_assign_cookies/assign_cookies.cpp
        src/455_assign_cookies/assign_cookies.h
        src/376_wiggle_subsequence/wiggle_subsequence.cpp
        src/376_wiggle_subsequence/wiggle_subsequence.h
        src/78_subsets/subsets.cpp
        src/78_subsets/subsets.h
        src/402_remove_k_digits/remove_k_dig.cpp
        src/402_remove_k_digits/remove_k_dig.h
        src/55_jump_game/jump_game.cpp
        src/55_jump_game/jump_game.h
        src/162_find_peak/find_peak.cpp
        src/162_find_peak/find_peak.h
        src/45_jump_game_II/jump_game_II.cpp
        src/45_jump_game_II/jump_game_II.h
        src/452_burst_balloons/burst_balloons.cpp
        src/452_burst_balloons/burst_balloons.h
        src/315_count_smaller_numbers/count_smaller_numbers.cpp
        src/315_count_smaller_numbers/count_smaller_numbers.h
        src/90_subsets_II/subsets_II.cpp
        src/90_subsets_II/subsets_II.h
        src/113_path_sum_II/path_sum_II.cpp
        src/113_path_sum_II/path_sum_II.h
        src/40_combination_sum_II/combination_sum_II.cpp
        src/40_combination_sum_II/combination_sum_II.h
        src/22_generate_parentheses/generate_parentheses.cpp
        src/22_generate_parentheses/generate_parentheses.h
        src/51_N_queens/n_queens.cpp
        src/51_N_queens/n_queens.h
        src/236_lowest_commonance_ancestor/lowest_commonance_ancestor.cpp
        src/236_lowest_commonance_ancestor/lowest_commonance_ancestor.h
        src/114_flatten_binary_tree2linked_list/flatten_binary_tree2linked_list.cpp
        src/114_flatten_binary_tree2linked_list/flatten_binary_tree2linked_list.h
        src/199_binary_tree_right_side_view/binary_tree_right_side_view.cpp
        src/199_binary_tree_right_side_view/binary_tree_right_side_view.h
        src/207_course_schedule/course_schedule.cpp
        src/207_course_schedule/course_schedule.h
        src/35_search_insert_position/search_insert_position.cpp
        src/35_search_insert_position/search_insert_position.h
        src/34_search_range/search_range.cpp
        src/34_search_range/search_range.h
        src/33_search_rotated_sorted_array/search_rotated_sorted_array.cpp
        src/33_search_rotated_sorted_array/search_rotated_sorted_array.h
        src/449_serialize_deserialize_BST/serialize_deserialize_BST.cpp
        src/449_serialize_deserialize_BST/serialize_deserialize_BST.h
        src/409_longest_palindrome/longest_palindrome.cpp
        src/409_longest_palindrome/longest_palindrome.h
        src/290_word_pattern/word_pattern.cpp
        src/290_word_pattern/word_pattern.h
        src/49_group_anagrams/group_anagrams.cpp
        src/49_group_anagrams/group_anagrams.h
        src/1_two_sum/two_sum.cpp
        src/1_two_sum/two_sum.h
        src/3_length_longest_substring/length_longest_substring.cpp
        src/3_length_longest_substring/length_longest_substring.h
        src/79_exist/exist.cpp
        src/79_exist/exist.h
        src/76_min_window/min_window.cpp
        src/76_min_window/min_window.h
        src/200_num_islands/num_islands.cpp
        src/200_num_islands/num_islands.h
        src/127_ladder_length/ladder_length.cpp
        src/127_ladder_length/ladder_length.h
        src/70_climbStairs/climbStairs.cpp
        src/70_climbStairs/climbStairs.h
        src/198_rob/rob.cpp
        src/198_rob/rob.h
        src/104_maxDepth/maxDepth.cpp
        src/104_maxDepth/maxDepth.h
        src/offer04_searchMatrix/searchMatrix.cpp
        src/offer04_searchMatrix/searchMatrix.h
        src/offer03_findRepeatNumber/findRepeatNumber.cpp
        src/offer03_findRepeatNumber/findRepeatNumber.h
        src/0_listToTree/listToTree.cpp
        src/0_listToTree/listToTree.h
        src/offer07_buildTree/buildTree.cpp
        src/offer07_buildTree/buildTree.h
        src/offer05_replaceSpace/replaceSpace.cpp
        src/offer05_replaceSpace/replaceSpace.h
        src/offer06_reversePrint/reversePrint.cpp
        src/offer06_reversePrint/reversePrint.h
        src/offer12_exist/exist.cpp
        src/offer12_exist/exist.h
        src/nhj16_get/get_things.cpp
        src/nhj16_get/get_things.h
        src/nhj78_string_plus/string_plus.cpp
        src/nhj78_string_plus/string_plus.h
        src/10_isMatch/isMatch.cpp src/10_isMatch/isMatch.h
        src/994_orangesRotting/orangesRotting.cpp
        src/994_orangesRotting/orangesRotting.h
        src/offer26_sub_tree/isSubStructure.cpp
        src/offer26_sub_tree/isSubStructure.h
        src/offer14_cuttingRope/cuttingRope.cpp
        src/offer14_cuttingRope/cuttingRope.h
        src/226_invertTree/invertTree.cpp
        src/226_invertTree/invertTree.h
        src/101_isSymmetric/isSymmetric.cpp
        src/101_isSymmetric/isSymmetric.h
        src/52_N_queue_II/n_queue_II.cpp
        src/52_N_queue_II/n_queue_II.h
        src/102_levelOrder/levelOrder.cpp
        src/102_levelOrder/levelOrder.h
        src/820_minimumLengthEncoding/minimumLengthEncoding.cpp
        src/820_minimumLengthEncoding/minimumLengthEncoding.h
        src/1109_corpFlightBookings/corpFlightBookings.cpp
        src/1109_corpFlightBookings/corpFlightBookings.h
        src/6_convert/convert.cpp src/6_convert/convert.h
        src/2_addTwoNumbers/addTwoNumbers.cpp
        src/2_addTwoNumbers/addTwoNumbers.h
        src/71_simplifyPath/simplifyPath.cpp
        src/71_simplifyPath/simplifyPath.h
        src/406_reconstructQueue/reconstructQueue.cpp
        src/406_reconstructQueue/reconstructQueue.h src/own_alarm_system/alarm.cpp src/own_alarm_system/alarm.h)


target_link_libraries(leetcode_solutions atomic)
